HandToHand
HandToHand Create new Handle and copy Handle data to it #include <OSUtils.h> Operating System Utilities
Handle *theHandle ; address of Handle to copy; receives new Handle existing Handle into the new one.
theHandle is the address of an existing Handle. On entry, it is a Handle leading to data you wish to copy. On return, it is overwritten by a
newly- created Handle that leads to a relocatable block containing a copy of the data.
memFullErr (-108) Not enough room in heap for new Handle
nilHandleErr (-109) theHandle was invalid on entry
memWZErr (-111) Attempt to operate on a free block
Notes: Since HandToHand cleverly overwrites the original value of theHandle, the normal technique is to make a copy of the original before the call; e.g:
destHandle = srcHandle;
. . . an error occurred . . .
} . . . else, a copy of watchCursor is now in destHandle . . .